package com.limanyik.family.security.service;

import com.limanyik.family.common.entity.BasisUser;
import com.limanyik.family.common.entity.server.security.UserLogin;
import com.limanyik.family.common.utils.FamilyHttpRequest;
import com.limanyik.family.common.utils.FamilyHttpResponse;
import com.limanyik.family.security.entity.WebLoginData;

import javax.servlet.http.HttpServletResponse;
import java.awt.*;
import java.util.Stack;

public interface LoginService {

    /**
     * web端登录接口
     *
     * @param familyHttpRequest
     * @param response
     * @return
     */
    FamilyHttpResponse<WebLoginData> webLogin(FamilyHttpRequest<UserLogin> familyHttpRequest, HttpServletResponse response);

    BasisUser doConfigUser(String username, String password);

}
